package com.ict.web.domain;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ict.common.annotation.Excel;
import com.ict.web.controller.file.domain.YzqFile;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 职业资格对象 yzq_professional_qualification
 * 
 * @author liujie
 * @date 2022-02-23
 */
@TableName("yzq_professional_qualification")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProfessionalQualification implements Serializable
{
    private static final long serialVersionUID = 1L;

    public static final String DELETE_STATUS_NORMAL = "0";
    public static final String DELETE_STATUS_UNNORMAL = "1";


    @ApiModelProperty(value = "职业资格id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "professional_id",type = IdType.ASSIGN_ID)
    private Long professionalId;

    @ApiModelProperty(value = "专家id")
    private Long expertId;

    @ApiModelProperty(value = "资格名称")
    private String qualificationName;

    @ApiModelProperty(value = "资格证书号")
    private String qcNo;

    @ApiModelProperty(value = "注册单位")
    private String registeredUnit;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd ",timezone = "GMT+8")
    @ApiModelProperty(value = "注册时间")
    private Date registrationTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd ",timezone = "GMT+8")
    @ApiModelProperty(value = "过期时间")
    private Date expirationTime;

    @ApiModelProperty(value = "附件")
    private String qualificationFile;

    @ApiModelProperty(value = "附件文件")
    @TableField(exist = false)
    private YzqFile qualificationFileDoc;

    @ApiModelProperty(value = "删除标识（0：正常，1：删除）")
    private String delFlag;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

}
